package com.ys.entity.advanced;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_advert].[dbo].ADS_Sp_PurchasedProduct", catalog="Id")
public class AdsSpPurchasedProduct extends BaseEntity<AdsSpPurchasedProduct> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="AdGroupId", nameJava="adGroupId", typeDataBase="varchar")
	private String adGroupId;
	@YsField(nameDataBase="AdvertisedSKU", nameJava="advertisedSKU", typeDataBase="varchar")
	private String advertisedSKU;
	@YsField(nameDataBase="PurchasedAsin", nameJava="purchasedAsin", typeDataBase="varchar")
	private String purchasedAsin;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="UnitsSoldOtherSku1d", nameJava="unitsSoldOtherSku1d", typeDataBase="int")
	private Integer unitsSoldOtherSku1d;
	@YsField(nameDataBase="SalesOtherSku1d", nameJava="salesOtherSku1d", typeDataBase="decimal")
	private BigDecimal salesOtherSku1d;
	@YsField(nameDataBase="PurchasesOtherSku1d", nameJava="purchasesOtherSku1d", typeDataBase="int")
	private Integer purchasesOtherSku1d;
	@YsField(nameDataBase="ShopNameMc", nameJava="shopNameMc", typeDataBase="varchar")
	private String shopNameMc;
	@YsField(nameDataBase="ShopId", nameJava="shopId", typeDataBase="varchar")
	private String shopId;
	@YsField(nameDataBase="VGsJc", nameJava="vGsJc", typeDataBase="varchar")
	private String vGsJc;
	@YsField(nameDataBase="VGsBm", nameJava="vGsBm", typeDataBase="varchar")
	private String vGsBm;
	@YsField(nameDataBase="Date", nameJava="date", typeDataBase="varchar")
	private String date;
	@YsField(nameDataBase="AdvertisedProductId", nameJava="advertisedProductId", typeDataBase="varchar")
	private String advertisedProductId;
	@YsField(nameDataBase="CUser", nameJava="cUser", typeDataBase="varchar")
	private String cUser;
	@YsField(nameDataBase="AdvertisedAsin", nameJava="advertisedAsin", typeDataBase="varchar")
	private String advertisedAsin;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public AdsSpPurchasedProduct setId(Long id) {
		this.id = id;
		return this;
	}
	public String getAdGroupId() {
		return adGroupId;
	}
	public AdsSpPurchasedProduct setAdGroupId(String adGroupId) {
		this.adGroupId = adGroupId;
		return this;
	}
	public String getAdvertisedSKU() {
		return advertisedSKU;
	}
	public AdsSpPurchasedProduct setAdvertisedSKU(String advertisedSKU) {
		this.advertisedSKU = advertisedSKU;
		return this;
	}
	public String getPurchasedAsin() {
		return purchasedAsin;
	}
	public AdsSpPurchasedProduct setPurchasedAsin(String purchasedAsin) {
		this.purchasedAsin = purchasedAsin;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public AdsSpPurchasedProduct setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public AdsSpPurchasedProduct setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public Integer getUnitsSoldOtherSku1d() {
		return unitsSoldOtherSku1d;
	}
	public AdsSpPurchasedProduct setUnitsSoldOtherSku1d(Integer unitsSoldOtherSku1d) {
		this.unitsSoldOtherSku1d = unitsSoldOtherSku1d;
		return this;
	}
	public BigDecimal getSalesOtherSku1d() {
		return salesOtherSku1d;
	}
	public AdsSpPurchasedProduct setSalesOtherSku1d(BigDecimal salesOtherSku1d) {
		this.salesOtherSku1d = salesOtherSku1d;
		return this;
	}
	public Integer getPurchasesOtherSku1d() {
		return purchasesOtherSku1d;
	}
	public AdsSpPurchasedProduct setPurchasesOtherSku1d(Integer purchasesOtherSku1d) {
		this.purchasesOtherSku1d = purchasesOtherSku1d;
		return this;
	}
	public String getShopNameMc() {
		return shopNameMc;
	}
	public AdsSpPurchasedProduct setShopNameMc(String shopNameMc) {
		this.shopNameMc = shopNameMc;
		return this;
	}
	public String getShopId() {
		return shopId;
	}
	public AdsSpPurchasedProduct setShopId(String shopId) {
		this.shopId = shopId;
		return this;
	}
	public String getVGsJc() {
		return vGsJc;
	}
	public AdsSpPurchasedProduct setVGsJc(String vGsJc) {
		this.vGsJc = vGsJc;
		return this;
	}
	public String getVGsBm() {
		return vGsBm;
	}
	public AdsSpPurchasedProduct setVGsBm(String vGsBm) {
		this.vGsBm = vGsBm;
		return this;
	}
	public String getDate() {
		return date;
	}
	public AdsSpPurchasedProduct setDate(String date) {
		this.date = date;
		return this;
	}
	public String getAdvertisedProductId() {
		return advertisedProductId;
	}
	public AdsSpPurchasedProduct setAdvertisedProductId(String advertisedProductId) {
		this.advertisedProductId = advertisedProductId;
		return this;
	}
	public String getCUser() {
		return cUser;
	}
	public AdsSpPurchasedProduct setCUser(String cUser) {
		this.cUser = cUser;
		return this;
	}
	public String getAdvertisedAsin() {
		return advertisedAsin;
	}
	public AdsSpPurchasedProduct setAdvertisedAsin(String advertisedAsin) {
		this.advertisedAsin = advertisedAsin;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public AdsSpPurchasedProduct setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public AdsSpPurchasedProduct setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public AdsSpPurchasedProduct setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static AdsSpPurchasedProduct adsSpPurchasedProduct(
		String adGroupId,
		String advertisedSKU,
		String purchasedAsin,
		String productCode,
		String productName,
		Integer unitsSoldOtherSku1d,
		BigDecimal salesOtherSku1d,
		Integer purchasesOtherSku1d,
		String shopNameMc,
		String shopId,
		String vGsJc,
		String vGsBm,
		String date,
		String advertisedProductId,
		String cUser,
		String advertisedAsin,
		Integer status
			) {
		AdsSpPurchasedProduct entity = new AdsSpPurchasedProduct();
		entity.setAdGroupId(adGroupId);
		entity.setAdvertisedSKU(advertisedSKU);
		entity.setPurchasedAsin(purchasedAsin);
		entity.setProductCode(productCode);
		entity.setProductName(productName);
		entity.setUnitsSoldOtherSku1d(unitsSoldOtherSku1d);
		entity.setSalesOtherSku1d(salesOtherSku1d);
		entity.setPurchasesOtherSku1d(purchasesOtherSku1d);
		entity.setShopNameMc(shopNameMc);
		entity.setShopId(shopId);
		entity.setVGsJc(vGsJc);
		entity.setVGsBm(vGsBm);
		entity.setDate(date);
		entity.setAdvertisedProductId(advertisedProductId);
		entity.setCUser(cUser);
		entity.setAdvertisedAsin(advertisedAsin);
		entity.setStatus(status);
		return entity;
	}
}